package tag22_08_08.initblocks;

class Fruit {
	static {
		System.out.println("Fruit: static init");
	}
	{
		System.out.println("Fruit: init");
	}
	public Fruit() {
		System.out.println("Fruit: Konstruktor");
	}
}

class Banana extends Fruit {
	static {
		System.out.println("Banana: static init");
	}
	{
		System.out.println("Banana: init");
	}
	public Banana() {
		System.out.println("Banana: Konstruktor");
	}
}

public class InitBlocksUndVererbung {

	public static void main(String[] args) {
		
		new Banana();
		//Fruit: static init
		//Banana: static init
		
		//Fruit: init
		//Fruit: Konstruktor
		//Banana: init
		//Banana: Konstruktor
		
		
	}

}
